package com.lisn.fragmentationupload.upload;


public interface UploadTaskListener {

    /**
     * 上传中
     *
     * @param percent
     * @param uploadTask
     */
    void onUploading(UploadTask uploadTask, String percent);


    /**
     * 上传成功
     *
     * @param uploadTask
     * @param filePath
     */
    void onUploadSuccess(UploadTask uploadTask, String filePath);

    /**
     * 上传失败
     *
     * @param uploadTask
     * @param errorCode    {@link UploadStatus}
     */
    void onError(UploadTask uploadTask, int errorCode);
    /**
     * 上传暂停
     *
     * @param uploadTask
     *
     */
    void onPause(UploadTask uploadTask);

}
